<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: looper类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="../../d7/d36/classlooper-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">looper类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>libuv 事件循环控制器。所有的libuv事件循环都应该依赖于这个模块。如果硬件设备是多核的 可以把这个模块设计成多个线程循环的模块。否则应该是一个循环线程  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="../../dc/d4b/uvlper_8hpp_source.html">uvlper.hpp</a>&gt;</code></p>
<div class="dynheader">
类 looper 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../db/d12/classlooper__inherit__graph.png" border="0" usemap="#alooper_inherit__map" alt="Inheritance graph"/></div>
<map name="alooper_inherit__map" id="alooper_inherit__map">
<area shape="rect" title="libuv 事件循环控制器。所有的libuv事件循环都应该依赖于这个模块。如果硬件设备是多核的 可以把这个模块设计成多个线程循环的模块。否则应该是一个循环线程" alt="" coords="5,769,199,1052"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html" title=" " alt="" coords="18,395,186,720"/>
<area shape="poly" title=" " alt="" coords="105,735,105,770,99,770,99,735"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html" title=" " alt="" coords="18,5,186,331"/>
<area shape="poly" title=" " alt="" coords="105,346,105,395,99,395,99,346"/>
</map>
</div>
<div class="dynheader">
looper 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d0/d8d/classlooper__coll__graph.png" border="0" usemap="#alooper_coll__map" alt="Collaboration graph"/></div>
<map name="alooper_coll__map" id="alooper_coll__map">
<area shape="rect" title="libuv 事件循环控制器。所有的libuv事件循环都应该依赖于这个模块。如果硬件设备是多核的 可以把这个模块设计成多个线程循环的模块。否则应该是一个循环线程" alt="" coords="5,769,199,1052"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html" title=" " alt="" coords="18,395,186,720"/>
<area shape="poly" title=" " alt="" coords="105,735,105,770,99,770,99,735"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html" title=" " alt="" coords="18,5,186,331"/>
<area shape="poly" title=" " alt="" coords="105,346,105,395,99,395,99,346"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a74e572cbf588a4d3a8112270d3e07a85" id="r_a74e572cbf588a4d3a8112270d3e07a85"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a74e572cbf588a4d3a8112270d3e07a85">looper</a> ()</td></tr>
<tr class="separator:a74e572cbf588a4d3a8112270d3e07a85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20dac7178bb2a64a6e3a96d5b589e49b" id="r_a20dac7178bb2a64a6e3a96d5b589e49b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a20dac7178bb2a64a6e3a96d5b589e49b">looper</a> (const <a class="el" href="../../d1/d0f/classlooper.html">looper</a> &amp;b)=delete</td></tr>
<tr class="separator:a20dac7178bb2a64a6e3a96d5b589e49b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedc7fbb668d3b7d756c1c5721254eb5a" id="r_aedc7fbb668d3b7d756c1c5721254eb5a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d1/d0f/classlooper.html">looper</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aedc7fbb668d3b7d756c1c5721254eb5a">operator=</a> (const <a class="el" href="../../d1/d0f/classlooper.html">looper</a> &amp;b)=delete</td></tr>
<tr class="separator:aedc7fbb668d3b7d756c1c5721254eb5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab56cfe0ef8476a174ef299d691739032" id="r_ab56cfe0ef8476a174ef299d691739032"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab56cfe0ef8476a174ef299d691739032">~looper</a> ()</td></tr>
<tr class="separator:ab56cfe0ef8476a174ef299d691739032"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a532f774c4e60fe1052fd75a8429fc9" id="r_a2a532f774c4e60fe1052fd75a8429fc9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2a532f774c4e60fe1052fd75a8429fc9">run</a> (uv_run_mode mode=UV_RUN_DEFAULT)</td></tr>
<tr class="memdesc:a2a532f774c4e60fe1052fd75a8429fc9"><td class="mdescLeft">&#160;</td><td class="mdescRight">启动循环  <br /></td></tr>
<tr class="separator:a2a532f774c4e60fe1052fd75a8429fc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48a88de3272b7f28ed22544e5cf7b1ec" id="r_a48a88de3272b7f28ed22544e5cf7b1ec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a48a88de3272b7f28ed22544e5cf7b1ec">stop</a> ()</td></tr>
<tr class="memdesc:a48a88de3272b7f28ed22544e5cf7b1ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">停止运行  <br /></td></tr>
<tr class="separator:a48a88de3272b7f28ed22544e5cf7b1ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c748ad769d76b1dc291fc7da22071e9" id="r_a0c748ad769d76b1dc291fc7da22071e9"><td class="memItemLeft" align="right" valign="top">uv_loop_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0c748ad769d76b1dc291fc7da22071e9">getLoop</a> ()</td></tr>
<tr class="separator:a0c748ad769d76b1dc291fc7da22071e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classwheels_1_1dm_1_1singleton"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_methods_classwheels_1_1dm_1_1singleton')"><img src="../../closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton&lt; looper &gt;</a></td></tr>
<tr class="memitem:ae71c401e1f6a3fdd97ed39b821025952 inherit pub_methods_classwheels_1_1dm_1_1singleton" id="r_ae71c401e1f6a3fdd97ed39b821025952"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#ae71c401e1f6a3fdd97ed39b821025952">singleton</a> (const <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">singleton</a> &amp;)=delete</td></tr>
<tr class="separator:ae71c401e1f6a3fdd97ed39b821025952 inherit pub_methods_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00d55bdcea0b0896937c58ab2b9cb9a3 inherit pub_methods_classwheels_1_1dm_1_1singleton" id="r_a00d55bdcea0b0896937c58ab2b9cb9a3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a00d55bdcea0b0896937c58ab2b9cb9a3">singleton</a> (<a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">singleton</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a00d55bdcea0b0896937c58ab2b9cb9a3 inherit pub_methods_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:aa1ffcd338d3aa3768f67470c02ea2051" id="r_aa1ffcd338d3aa3768f67470c02ea2051"><td class="memItemLeft" align="right" valign="top">uv_loop_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa1ffcd338d3aa3768f67470c02ea2051">pt_loop</a></td></tr>
<tr class="separator:aa1ffcd338d3aa3768f67470c02ea2051"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95471c02e42ce2d55d52daea302cf20c" id="r_a95471c02e42ce2d55d52daea302cf20c"><td class="memItemLeft" align="right" valign="top">std::atomic&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a95471c02e42ce2d55d52daea302cf20c">m_is_run</a></td></tr>
<tr class="separator:a95471c02e42ce2d55d52daea302cf20c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:aaf8a9ed2dd9f1f83a9acfa8cd7b6b512" id="r_aaf8a9ed2dd9f1f83a9acfa8cd7b6b512"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d1/d0f/classlooper.html">looper</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aaf8a9ed2dd9f1f83a9acfa8cd7b6b512">CreateLooper</a> ()</td></tr>
<tr class="memdesc:aaf8a9ed2dd9f1f83a9acfa8cd7b6b512"><td class="mdescLeft">&#160;</td><td class="mdescRight">事件循环器工厂函数。如果对象存在则会创建失败返回空。否则返回循环器对象  <br /></td></tr>
<tr class="separator:aaf8a9ed2dd9f1f83a9acfa8cd7b6b512"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_types_classwheels_1_1dm_1_1singleton"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_types_classwheels_1_1dm_1_1singleton')"><img src="../../closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton&lt; looper &gt;</a></td></tr>
<tr class="memitem:a49cbde8528bcf4e2daa32e6b09e9039c inherit pub_types_classwheels_1_1dm_1_1singleton" id="r_a49cbde8528bcf4e2daa32e6b09e9039c"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a49cbde8528bcf4e2daa32e6b09e9039c">T</a></td></tr>
<tr class="separator:a49cbde8528bcf4e2daa32e6b09e9039c inherit pub_types_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classwheels_1_1dm_1_1singleton"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_static_methods_classwheels_1_1dm_1_1singleton')"><img src="../../closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton&lt; looper &gt;</a></td></tr>
<tr class="memitem:ab0f35771c8d539c732b6a4e40bcedeaf inherit pub_static_methods_classwheels_1_1dm_1_1singleton" id="r_ab0f35771c8d539c732b6a4e40bcedeaf"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#ab0f35771c8d539c732b6a4e40bcedeaf">create</a> (Args &amp;&amp;... args)</td></tr>
<tr class="memdesc:ab0f35771c8d539c732b6a4e40bcedeaf inherit pub_static_methods_classwheels_1_1dm_1_1singleton"><td class="mdescLeft">&#160;</td><td class="mdescRight">工厂函数，用来创建单例对象  <br /></td></tr>
<tr class="separator:ab0f35771c8d539c732b6a4e40bcedeaf inherit pub_static_methods_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff26d3af3d193f057a15cb6d25c5062c inherit pub_static_methods_classwheels_1_1dm_1_1singleton" id="r_aff26d3af3d193f057a15cb6d25c5062c"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#aff26d3af3d193f057a15cb6d25c5062c">create_shared</a> (Args &amp;&amp;... args)</td></tr>
<tr class="separator:aff26d3af3d193f057a15cb6d25c5062c inherit pub_static_methods_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab064e1d47abf923e4ae0deaac875c173 inherit pub_static_methods_classwheels_1_1dm_1_1singleton" id="r_ab064e1d47abf923e4ae0deaac875c173"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#ab064e1d47abf923e4ae0deaac875c173">get</a> ()</td></tr>
<tr class="memdesc:ab064e1d47abf923e4ae0deaac875c173 inherit pub_static_methods_classwheels_1_1dm_1_1singleton"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前的模块对象指针  <br /></td></tr>
<tr class="separator:ab064e1d47abf923e4ae0deaac875c173 inherit pub_static_methods_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c95860231735ce03395968f726d0246 inherit pub_static_methods_classwheels_1_1dm_1_1singleton" id="r_a4c95860231735ce03395968f726d0246"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a4c95860231735ce03395968f726d0246">get_shared</a> ()</td></tr>
<tr class="separator:a4c95860231735ce03395968f726d0246 inherit pub_static_methods_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classwheels_1_1dm_1_1singleton"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pro_methods_classwheels_1_1dm_1_1singleton')"><img src="../../closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton&lt; looper &gt;</a></td></tr>
<tr class="memitem:a486422f98733581c4462792f61c41fcf inherit pro_methods_classwheels_1_1dm_1_1singleton" id="r_a486422f98733581c4462792f61c41fcf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a486422f98733581c4462792f61c41fcf">singleton</a> ()</td></tr>
<tr class="memdesc:a486422f98733581c4462792f61c41fcf inherit pro_methods_classwheels_1_1dm_1_1singleton"><td class="mdescLeft">&#160;</td><td class="mdescRight">避免直接调用构造函数  <br /></td></tr>
<tr class="separator:a486422f98733581c4462792f61c41fcf inherit pro_methods_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_static_attribs_classwheels_1_1dm_1_1singleton"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pro_static_attribs_classwheels_1_1dm_1_1singleton')"><img src="../../closed.png" alt="-"/>&#160;静态 Protected 属性 继承自 <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton&lt; looper &gt;</a></td></tr>
<tr class="memitem:a068f4f3064ec965938e0d99d2b890be7 inherit pro_static_attribs_classwheels_1_1dm_1_1singleton" id="r_a068f4f3064ec965938e0d99d2b890be7"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a068f4f3064ec965938e0d99d2b890be7">pt_obj__</a></td></tr>
<tr class="separator:a068f4f3064ec965938e0d99d2b890be7 inherit pro_static_attribs_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>libuv 事件循环控制器。所有的libuv事件循环都应该依赖于这个模块。如果硬件设备是多核的 可以把这个模块设计成多个线程循环的模块。否则应该是一个循环线程 </p>
<dl class="section version"><dt>版本</dt><dd>1.0 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2018-5-1 </dd></dl>
<dl class="section author"><dt>作者</dt><dd>宋炜 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../dc/d4b/uvlper_8hpp_source.html">uvlper.hpp</a> 第 <a class="el" href="../../dc/d4b/uvlper_8hpp_source.html#l00015">15</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a74e572cbf588a4d3a8112270d3e07a85" name="a74e572cbf588a4d3a8112270d3e07a85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74e572cbf588a4d3a8112270d3e07a85">&#9670;&#160;</a></span>looper() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">looper::looper </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d1/db2/uvlper_8cpp_source.html">uvlper.cpp</a> 第 <a class="el" href="../../d1/db2/uvlper_8cpp_source.html#l00008">8</a> 行定义.</p>

</div>
</div>
<a id="a20dac7178bb2a64a6e3a96d5b589e49b" name="a20dac7178bb2a64a6e3a96d5b589e49b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20dac7178bb2a64a6e3a96d5b589e49b">&#9670;&#160;</a></span>looper() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">looper::looper </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d1/d0f/classlooper.html">looper</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>b</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ab56cfe0ef8476a174ef299d691739032" name="ab56cfe0ef8476a174ef299d691739032"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab56cfe0ef8476a174ef299d691739032">&#9670;&#160;</a></span>~looper()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">looper::~looper </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d1/db2/uvlper_8cpp_source.html">uvlper.cpp</a> 第 <a class="el" href="../../d1/db2/uvlper_8cpp_source.html#l00016">16</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a0c748ad769d76b1dc291fc7da22071e9" name="a0c748ad769d76b1dc291fc7da22071e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c748ad769d76b1dc291fc7da22071e9">&#9670;&#160;</a></span>getLoop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uv_loop_t * looper::getLoop </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dc/d4b/uvlper_8hpp_source.html">uvlper.hpp</a> 第 <a class="el" href="../../dc/d4b/uvlper_8hpp_source.html#l00036">36</a> 行定义.</p>

</div>
</div>
<a id="aedc7fbb668d3b7d756c1c5721254eb5a" name="aedc7fbb668d3b7d756c1c5721254eb5a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedc7fbb668d3b7d756c1c5721254eb5a">&#9670;&#160;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/d0f/classlooper.html">looper</a> &amp; looper::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d1/d0f/classlooper.html">looper</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>b</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a2a532f774c4e60fe1052fd75a8429fc9" name="a2a532f774c4e60fe1052fd75a8429fc9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a532f774c4e60fe1052fd75a8429fc9">&#9670;&#160;</a></span>run()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void looper::run </td>
          <td>(</td>
          <td class="paramtype">uv_run_mode</td>          <td class="paramname"><span class="paramname"><em>mode</em></span><span class="paramdefsep"> = </span><span class="paramdefval">UV_RUN_DEFAULT</span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>启动循环 </p>

<p class="definition">在文件 <a class="el" href="../../d1/db2/uvlper_8cpp_source.html">uvlper.cpp</a> 第 <a class="el" href="../../d1/db2/uvlper_8cpp_source.html#l00026">26</a> 行定义.</p>

</div>
</div>
<a id="a48a88de3272b7f28ed22544e5cf7b1ec" name="a48a88de3272b7f28ed22544e5cf7b1ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48a88de3272b7f28ed22544e5cf7b1ec">&#9670;&#160;</a></span>stop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void looper::stop </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>停止运行 </p>

<p class="definition">在文件 <a class="el" href="../../d1/db2/uvlper_8cpp_source.html">uvlper.cpp</a> 第 <a class="el" href="../../d1/db2/uvlper_8cpp_source.html#l00042">42</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">友元及相关符号说明</h2>
<a id="aaf8a9ed2dd9f1f83a9acfa8cd7b6b512" name="aaf8a9ed2dd9f1f83a9acfa8cd7b6b512"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf8a9ed2dd9f1f83a9acfa8cd7b6b512">&#9670;&#160;</a></span>CreateLooper</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/d0f/classlooper.html">looper</a> * CreateLooper </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>事件循环器工厂函数。如果对象存在则会创建失败返回空。否则返回循环器对象 </p>

<p class="definition">在文件 <a class="el" href="../../d1/db2/uvlper_8cpp_source.html">uvlper.cpp</a> 第 <a class="el" href="../../d1/db2/uvlper_8cpp_source.html#l00049">49</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a95471c02e42ce2d55d52daea302cf20c" name="a95471c02e42ce2d55d52daea302cf20c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95471c02e42ce2d55d52daea302cf20c">&#9670;&#160;</a></span>m_is_run</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::atomic&lt;bool&gt; looper::m_is_run</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dc/d4b/uvlper_8hpp_source.html">uvlper.hpp</a> 第 <a class="el" href="../../dc/d4b/uvlper_8hpp_source.html#l00021">21</a> 行定义.</p>

</div>
</div>
<a id="aa1ffcd338d3aa3768f67470c02ea2051" name="aa1ffcd338d3aa3768f67470c02ea2051"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1ffcd338d3aa3768f67470c02ea2051">&#9670;&#160;</a></span>pt_loop</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uv_loop_t* looper::pt_loop</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dc/d4b/uvlper_8hpp_source.html">uvlper.hpp</a> 第 <a class="el" href="../../dc/d4b/uvlper_8hpp_source.html#l00020">20</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/<a class="el" href="../../dc/d4b/uvlper_8hpp_source.html">uvlper.hpp</a></li>
<li>src/<a class="el" href="../../d1/db2/uvlper_8cpp_source.html">uvlper.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
